import React from 'react';
import { useHistory, useLocation, history } from 'umi';
import type { History } from 'umi';

export default function List() {
  // const history:History = useHistory();
  // const location:Location = useLocation()
  // console.log(location.query)
  // const handleClick = () => {
  //   history.push({pathname:'/juanshe',query:{id:'1'}})
  // };
  history.push({ pathname: 'juanshe', query: { id: '1' } });

  return (
    <div>
      <h1>普通列表</h1>
    </div>
  );
}
